#pragma once

class TinyBytes
{
public:
	TinyBytes(size_t len = 0);

	~TinyBytes(void);

	TinyBytes(const TinyBytes &other);

	TinyBytes &operator = (const TinyBytes &other);

public:
	bool push(const void *data, size_t len);

	void pop(unsigned int len);

	void clear();

	const void *data();

	size_t length();

private:
	char	*_buf;
	size_t	_bufLen;
	size_t	_dataLen;
};